﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
	CodeBehind="Registration.aspx.cs" Inherits="HomeBuhApp.Account.Registration" %>

<%@ Import Namespace="Resources" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<asp:CreateUserWizard ID="UserRegistration" runat="server" RequireEmail="true" AutoGeneratePassword="false"
		EnableViewState="false" OnCreatedUser="UserRegistration_CreatedUser">
		<LayoutTemplate>
			<asp:PlaceHolder ID="wizardStepPlaceholder" runat="server"></asp:PlaceHolder>
			<asp:PlaceHolder ID="navigationPlaceholder" runat="server"></asp:PlaceHolder>
		</LayoutTemplate>
		<WizardSteps>
			<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
				<ContentTemplate>
					<h2>
						<%=Language.CreateNewUserLabel %>
					</h2>
					<p>
						Passwords are required to be a minimum of
						<%= Membership.MinRequiredPasswordLength %>
						characters in length.
					</p>
					<span class="failureNotification">
						<asp:Literal ID="FailureText" runat="server"></asp:Literal>
					</span>
					<asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
						ValidationGroup="RegisterUserValidationGroup" />
					<div class="accountInfo">
						<fieldset class="register" runat="server">
							<legend>
								<%=Language.AccountInformation%></legend>
							<div>
								<div>
									<asp:Label ID="UserNameLabel" AssociatedControlID="UserName" runat="server" Text="<%$ Resources:Language, UserNameLabel %>" />
									<asp:TextBox ID="UserName" runat="server" CssClass="textEntry"/>
									<asp:RequiredFieldValidator ValidationGroup="RegisterUserValidationGroup" ControlToValidate="UserName"
										ErrorMessage="<%$ Resources:Language, UserNameRequired %>" ToolTip="<%$ Resources:Language, UserNameRequired %>"
										runat="server" CssClass="failureNotification">*</asp:RequiredFieldValidator>
								</div>
								<div>
									<asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" Text="<%$ Resources:Language, EmailLabel %>" />
									<asp:TextBox ID="Email" runat="server" CssClass="textEntry"/>
									<asp:RequiredFieldValidator ValidationGroup="RegisterUserValidationGroup" ControlToValidate="Email"
										ErrorMessage="<%$ Resources:Language, EmailRequired %>" ToolTip="<%$ Resources:Language, UserNameRequired %>"
										runat="server" CssClass="failureNotification">*</asp:RequiredFieldValidator>
								</div>
								<div>
									<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Text="<%$ Resources:Language, PasswordLabel %>" />
									<asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="passwordEntry"/>
									<asp:RequiredFieldValidator ValidationGroup="RegisterUserValidationGroup" ControlToValidate="Password"
										ErrorMessage="<%$ Resources:Language, PasswordRequired %>" ToolTip="<%$ Resources:Language, PasswordRequired %>"
										runat="server" CssClass="failureNotification">*</asp:RequiredFieldValidator>
								</div>
								<div>
									<asp:Label ID="ConfirmPasswordLabel" runat="server" Text="<%$ Resources:Language, ConfirmPasswordLabel %>"
										AssociatedControlID="ConfirmPassword" />
									<asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" CssClass="passwordEntry"/>
									<asp:RequiredFieldValidator ValidationGroup="RegisterUserValidationGroup" ControlToValidate="ConfirmPassword"
										ErrorMessage="<%$ Resources:Language, ConfirmPasswordRequired %>" ToolTip="<%$ Resources:Language, ConfirmPasswordRequired %>"
										runat="server" CssClass="failureNotification">*</asp:RequiredFieldValidator>
									<asp:CompareValidator ControlToValidate="ConfirmPassword" ControlToCompare="Password"
										ValidationGroup="RegisterUserValidationGroup" ErrorMessage="<%$ Resources:Language, ConfirmPasswordCompareError%>"
										ToolTip="<%$ Resources:Language, ConfirmPasswordCompareError %>" runat="server"
										CssClass="failureNotification">*</asp:CompareValidator>
								</div>
							</div>
						</fieldset>
						<div class="submitButton">
							<asp:Button ID="CreateUserButton" CommandName="MoveNext" runat="server" Text="<%$ Resources:Language, CreateUserButtonLabel %>"
								ValidationGroup="RegisterUserValidationGroup" CssClass="button"/>
						</div>
					</div>
				</ContentTemplate>
				<CustomNavigationTemplate>
				</CustomNavigationTemplate>
			</asp:CreateUserWizardStep>
		</WizardSteps>
	</asp:CreateUserWizard>
</asp:Content>
